#include "VirtoolsVehicle.h"

void vtRaycastVehicle::addWheelInfo(CK3dEntity* ent, bool steering, float steeringPercentage, bool engineForce)
{
	vtWheelInfo* wheelInfo = new vtWheelInfo(ent,steering,steeringPercentage,engineForce,0);
	m_vtWheelInfo.push_back(wheelInfo);
}

vtWheelInfo* vtRaycastVehicle::getVtWheelInfo(int index)
{
	return m_vtWheelInfo[index];
}

void vtRaycastVehicle::setWheelForce(float& wheelForce)
{
	m_gEngineForce = wheelForce;
}
void vtRaycastVehicle::setWheelSteering(float& wheelSteering)
{
	m_gVehicleSteering = wheelSteering;
}
void vtRaycastVehicle::setBreakingForce(float& breakingForce)
{
	m_gBreakingForce = breakingForce;
}
void vtRaycastVehicle::setAllVehicleSteering(bool& allVehicleSteering)
{
	m_bAllVehicleSteering = allVehicleSteering;
}
void vtRaycastVehicle::setAllEngineForce(bool& allEngineForce )
{
	m_bAllEngineForce = allEngineForce;
}

float vtRaycastVehicle::getWheelForce()
{
	return m_gEngineForce;
}
float vtRaycastVehicle::getWheelSteering()
{
	return m_gVehicleSteering;
}
float vtRaycastVehicle::getBreakingForce()
{
	return m_gBreakingForce;
}
bool vtRaycastVehicle::getAllVehicleSteering()
{
	return m_bAllVehicleSteering;
}
bool vtRaycastVehicle::getAllEngineForce()
{
	return m_bAllEngineForce;
}